﻿using System;
using System.ComponentModel.DataAnnotations;
using Demo.Const;

namespace Demo.DtoParameters
{
    public class CompanyDtoParameters
    {
        [Display(Name = "公司名称")]
        [MaxLength(100, ErrorMessage = "{0}最大长度为100")]
        public string CompanyName { get; set; }

        [Display(Name = "关键词")]
        [MaxLength(20, ErrorMessage = "{0}最大长度为500")]
        public string SearchTerm { get; set; }

        public int PageNumber { get; set; } = 1;

        [Range(0, DefaultValue.MaxPageSize)] 
        public int PageSize { get; set; } = 20;

        public string Filds { get; set; }
    }
}